package com.tyj.movie.constant;

/**
 * 日期: 2021/6/28 21:50
 * 作者: 谭友杰
 * 类说明:  ajax返回常量
 */

public enum AjaxConstant {
    AjAX_ACCOUNT_EXISTS(1001, "账号已存在"),
    AjAX_PAREMETER_ERROR(1002, "参数错误"),
    AJAX_EDIT_USERS_ERROR(1003,"修改用户失败"),
    AJAX_USER_NO_LOGIN(1004,"未登录"),
    AJAX_USER_WATCH_YES(2001,"用户已观看"),
    AJAX_USER_WATCH_NO(2002,"用户未观看"),
    AjAX_GIVE_LIKE_YES(3001,"用户已点赞"),
    AjAX_GIVE_LIKE_NO(3002,"用户取消点赞")
    ;


    private int code;
    private String msg;

    AjaxConstant(int code, String name) {
        this.code = code;
        this.msg = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }}
